import request from '@/utils/request'

// 查询试卷考题表列表
export function listSubjectPaper(query) {
  return request({
    url: '/system/subject/paper/list',
    method: 'get',
    params: query
  })
}

// 查询试卷考题表详细
export function getSubjectPaper(paperId) {
  return request({
    url: '/system/subject/paper/' + paperId,
    method: 'get'
  })
}

// 新增试卷考题表
export function addSubjectPaper(data) {
  return request({
    url: '/system/subject/paper',
    method: 'post',
    data: data
  })
}

// 修改试卷考题表
export function updateSubjectPaper(data) {
  return request({
    url: '/system/subject/paper',
    method: 'put',
    data: data
  })
}

// 删除试卷考题表
export function delSubjectPaper(paperId) {
  return request({
    url: '/system/subject/paper/' + paperId,
    method: 'delete'
  })
}
